package com.macro.mall.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class PayLogExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PayLogExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("ID is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("ID is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("ID =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("ID <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("ID >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("ID >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("ID <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("ID <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("ID in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("ID not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("ID between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("ID not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("USER_ID is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("USER_ID is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("USER_ID =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("USER_ID <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("USER_ID >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("USER_ID >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("USER_ID <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("USER_ID <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("USER_ID in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("USER_ID not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("USER_ID between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("USER_ID not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoIsNull() {
            addCriterion("OUT_TRADE_NO is null");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoIsNotNull() {
            addCriterion("OUT_TRADE_NO is not null");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoEqualTo(String value) {
            addCriterion("OUT_TRADE_NO =", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoNotEqualTo(String value) {
            addCriterion("OUT_TRADE_NO <>", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoGreaterThan(String value) {
            addCriterion("OUT_TRADE_NO >", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoGreaterThanOrEqualTo(String value) {
            addCriterion("OUT_TRADE_NO >=", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoLessThan(String value) {
            addCriterion("OUT_TRADE_NO <", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoLessThanOrEqualTo(String value) {
            addCriterion("OUT_TRADE_NO <=", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoLike(String value) {
            addCriterion("OUT_TRADE_NO like", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoNotLike(String value) {
            addCriterion("OUT_TRADE_NO not like", value, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoIn(List<String> values) {
            addCriterion("OUT_TRADE_NO in", values, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoNotIn(List<String> values) {
            addCriterion("OUT_TRADE_NO not in", values, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoBetween(String value1, String value2) {
            addCriterion("OUT_TRADE_NO between", value1, value2, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andOutTradeNoNotBetween(String value1, String value2) {
            addCriterion("OUT_TRADE_NO not between", value1, value2, "outTradeNo");
            return (Criteria) this;
        }

        public Criteria andTransactionIdIsNull() {
            addCriterion("TRANSACTION_ID is null");
            return (Criteria) this;
        }

        public Criteria andTransactionIdIsNotNull() {
            addCriterion("TRANSACTION_ID is not null");
            return (Criteria) this;
        }

        public Criteria andTransactionIdEqualTo(String value) {
            addCriterion("TRANSACTION_ID =", value, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdNotEqualTo(String value) {
            addCriterion("TRANSACTION_ID <>", value, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdGreaterThan(String value) {
            addCriterion("TRANSACTION_ID >", value, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdGreaterThanOrEqualTo(String value) {
            addCriterion("TRANSACTION_ID >=", value, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdLessThan(String value) {
            addCriterion("TRANSACTION_ID <", value, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdLessThanOrEqualTo(String value) {
            addCriterion("TRANSACTION_ID <=", value, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdLike(String value) {
            addCriterion("TRANSACTION_ID like", value, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdNotLike(String value) {
            addCriterion("TRANSACTION_ID not like", value, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdIn(List<String> values) {
            addCriterion("TRANSACTION_ID in", values, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdNotIn(List<String> values) {
            addCriterion("TRANSACTION_ID not in", values, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdBetween(String value1, String value2) {
            addCriterion("TRANSACTION_ID between", value1, value2, "transactionId");
            return (Criteria) this;
        }

        public Criteria andTransactionIdNotBetween(String value1, String value2) {
            addCriterion("TRANSACTION_ID not between", value1, value2, "transactionId");
            return (Criteria) this;
        }

        public Criteria andPayInitReqIsNull() {
            addCriterion("PAY_INIT_REQ is null");
            return (Criteria) this;
        }

        public Criteria andPayInitReqIsNotNull() {
            addCriterion("PAY_INIT_REQ is not null");
            return (Criteria) this;
        }

        public Criteria andPayInitReqEqualTo(String value) {
            addCriterion("PAY_INIT_REQ =", value, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqNotEqualTo(String value) {
            addCriterion("PAY_INIT_REQ <>", value, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqGreaterThan(String value) {
            addCriterion("PAY_INIT_REQ >", value, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqGreaterThanOrEqualTo(String value) {
            addCriterion("PAY_INIT_REQ >=", value, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqLessThan(String value) {
            addCriterion("PAY_INIT_REQ <", value, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqLessThanOrEqualTo(String value) {
            addCriterion("PAY_INIT_REQ <=", value, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqLike(String value) {
            addCriterion("PAY_INIT_REQ like", value, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqNotLike(String value) {
            addCriterion("PAY_INIT_REQ not like", value, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqIn(List<String> values) {
            addCriterion("PAY_INIT_REQ in", values, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqNotIn(List<String> values) {
            addCriterion("PAY_INIT_REQ not in", values, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqBetween(String value1, String value2) {
            addCriterion("PAY_INIT_REQ between", value1, value2, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitReqNotBetween(String value1, String value2) {
            addCriterion("PAY_INIT_REQ not between", value1, value2, "payInitReq");
            return (Criteria) this;
        }

        public Criteria andPayInitRspIsNull() {
            addCriterion("PAY_INIT_RSP is null");
            return (Criteria) this;
        }

        public Criteria andPayInitRspIsNotNull() {
            addCriterion("PAY_INIT_RSP is not null");
            return (Criteria) this;
        }

        public Criteria andPayInitRspEqualTo(String value) {
            addCriterion("PAY_INIT_RSP =", value, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspNotEqualTo(String value) {
            addCriterion("PAY_INIT_RSP <>", value, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspGreaterThan(String value) {
            addCriterion("PAY_INIT_RSP >", value, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspGreaterThanOrEqualTo(String value) {
            addCriterion("PAY_INIT_RSP >=", value, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspLessThan(String value) {
            addCriterion("PAY_INIT_RSP <", value, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspLessThanOrEqualTo(String value) {
            addCriterion("PAY_INIT_RSP <=", value, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspLike(String value) {
            addCriterion("PAY_INIT_RSP like", value, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspNotLike(String value) {
            addCriterion("PAY_INIT_RSP not like", value, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspIn(List<String> values) {
            addCriterion("PAY_INIT_RSP in", values, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspNotIn(List<String> values) {
            addCriterion("PAY_INIT_RSP not in", values, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspBetween(String value1, String value2) {
            addCriterion("PAY_INIT_RSP between", value1, value2, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayInitRspNotBetween(String value1, String value2) {
            addCriterion("PAY_INIT_RSP not between", value1, value2, "payInitRsp");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoIsNull() {
            addCriterion("PAY_RETURN_INFO is null");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoIsNotNull() {
            addCriterion("PAY_RETURN_INFO is not null");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoEqualTo(String value) {
            addCriterion("PAY_RETURN_INFO =", value, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoNotEqualTo(String value) {
            addCriterion("PAY_RETURN_INFO <>", value, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoGreaterThan(String value) {
            addCriterion("PAY_RETURN_INFO >", value, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoGreaterThanOrEqualTo(String value) {
            addCriterion("PAY_RETURN_INFO >=", value, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoLessThan(String value) {
            addCriterion("PAY_RETURN_INFO <", value, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoLessThanOrEqualTo(String value) {
            addCriterion("PAY_RETURN_INFO <=", value, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoLike(String value) {
            addCriterion("PAY_RETURN_INFO like", value, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoNotLike(String value) {
            addCriterion("PAY_RETURN_INFO not like", value, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoIn(List<String> values) {
            addCriterion("PAY_RETURN_INFO in", values, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoNotIn(List<String> values) {
            addCriterion("PAY_RETURN_INFO not in", values, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoBetween(String value1, String value2) {
            addCriterion("PAY_RETURN_INFO between", value1, value2, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andPayReturnInfoNotBetween(String value1, String value2) {
            addCriterion("PAY_RETURN_INFO not between", value1, value2, "payReturnInfo");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNull() {
            addCriterion("REMARK is null");
            return (Criteria) this;
        }

        public Criteria andRemarkIsNotNull() {
            addCriterion("REMARK is not null");
            return (Criteria) this;
        }

        public Criteria andRemarkEqualTo(String value) {
            addCriterion("REMARK =", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotEqualTo(String value) {
            addCriterion("REMARK <>", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThan(String value) {
            addCriterion("REMARK >", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkGreaterThanOrEqualTo(String value) {
            addCriterion("REMARK >=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThan(String value) {
            addCriterion("REMARK <", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLessThanOrEqualTo(String value) {
            addCriterion("REMARK <=", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkLike(String value) {
            addCriterion("REMARK like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotLike(String value) {
            addCriterion("REMARK not like", value, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkIn(List<String> values) {
            addCriterion("REMARK in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotIn(List<String> values) {
            addCriterion("REMARK not in", values, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkBetween(String value1, String value2) {
            addCriterion("REMARK between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andRemarkNotBetween(String value1, String value2) {
            addCriterion("REMARK not between", value1, value2, "remark");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}